<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>Document</title>
	<style>
		#div1{
			width:100px;
			height:100px;
			background:red;
			position:absolute;
		}
	</style>
	<script src="./jquery.js"></script>
	<script>
		/*	
				$('#div1').animate({
					height:300
				})
*/
		$(function(){
			$('#btn1').toggle(function(){
				$('#div1').stop().animate({
					height:300
				})
			},function(){
				$('#div1').stop().animate({
					height:100
				})
			})
		})

		//hover
	</script>
</head>
<body>
	<input type="button" value="开始运动" id="btn1">
	<div id="div1">



	</div>	





</body>
</html>